package com.bjc.base.service.impl;

import com.bjc.base.service.IBookCartService;
import org.springframework.stereotype.Service;
import com.bjc.base.core.IBaseDao;
import com.bjc.base.dao.IBookCartDao;
import com.bjc.base.core.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import com.bjc.base.bean.request.BookCartReqVO;
import com.bjc.base.bean.response.BookCartVO;

/**
 * <p>
 * 绘本购物车 服务实现类
 * </p>
 *
 * @author 许自辉
 * @since 2018-06-10
 */
@Service
public class BookCartImpl extends BaseServiceImpl<BookCartReqVO, BookCartVO> implements IBookCartService {
	
	private IBookCartDao dao;

	@Autowired
	@Override
	public void setBaseDao(IBaseDao<BookCartReqVO, BookCartVO> baseDao) {
		this.baseDao = baseDao;
		this.dao = (IBookCartDao) baseDao;
	}
	
	public void delete(BookCartReqVO bookCartReqVO) {
		dao.delete(bookCartReqVO);
	}
}
